import { _decorator, Component, Node } from "cc";
const { ccclass, property } = _decorator;

@ccclass("Home")
export class Home extends Component {
    @property(Node)
    private loginDialog: Node = null;

    @property(Node)
    private registerDialog: Node = null;

    start() {}

    update(deltaTime: number) {}

    handleShowLogin() {
        this.loginDialog.active = true;
    }
    handleShowRegister() {
        this.registerDialog.active = true;
    }
}
